package xyz.xtt.exchange.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户区块链账户表
 * </p>
 *
 * @author author
 * @since 2024-10-31
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_user_chain_account")
@ApiModel(value = "TblUserChainAccount对象", description = "用户区块链账户表")
public class TblUserChainAccount implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "资产用户表主键【id】")
	private Long fkUserId;

	@ApiModelProperty(value = "应用user_id")
	private Long appUserId;

	@ApiModelProperty(value = "链名称")
	private String chainName;

	@ApiModelProperty(value = "链id")
	private Integer chainId;

	@ApiModelProperty(value = "链上地址")
	private String chainAccount;

	@ApiModelProperty(value = "私钥生成加盐")
	private String salt;

	@ApiModelProperty(value = "公钥")
	private String pubkey;

	@ApiModelProperty(value = "私钥")
	private String prikey;

	@ApiModelProperty(value = "助记词")
	private String mnemonicPhrase;

	@ApiModelProperty(value = "账户状态0：未启用，1：已启用")
	private Integer state;

	@ApiModelProperty(value = "批次号账户批次号")
	private Long batchNum;

	@ApiModelProperty(value = "最新修改时间")
	private LocalDateTime lastModifyDate;

}
